/**
 *
 * @author 
 *
 */
class Button1 extends egret.Sprite {
	public constructor() {
    	super();
    	
        this.bg = new eui.Image;
        this.bg.source = "n_wbtn_1_0_png";
        this.addChild(this.bg);
        this.select(false);
	}
	
	private bg:eui.Image;
	
	public select(value:Boolean):void
    {
        if(value )
        {
            this.bg.source = "n_wbtn_1_1_png";
            this.bg.x = 0;
        }else
        {
            this.bg.source = "n_wbtn_1_0_png";
            this.bg.x = 22;
        }
    }
}
